#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

class SendFile;

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

signals:
    void sendFileEmit(QString path);
    void sendMessageEmit(QString);
    void startConnect(unsigned short ,QString);
    void sendDisconnectServer();

private slots:
    void on_sendFile_clicked();

    void on_connectServerPtn_clicked();

    void on_selFile_clicked();

    void on_buttonSend_clicked();

    void on_buttonDisconnect_clicked();

private:
    Ui::Widget *ui;

    QThread* thread;
    SendFile* sendFile;
};
#endif // WIDGET_H
